<?php
namespace Admin\Controller;
use Think\Controller;
class SystemController extends CommonController {
	//水印设置
	public function water(){
		$this->display();
	}
	//更新水印设置
	public function waterHandle(){
		if(!IS_POST) $this->error("提交方式错误");
		if(writeArr($_POST,CONF_PATH."/water.php")){
			$this->success("修改成功");
		}else{
			$this->error("修改失败");
		}
	}
	//验证码
    public function verify(){
       $this->display();
    }
    //修改验证码
	public function verifyHandle(){
		if(!IS_POST) $this->error("提交方式错误");
		
		if(writeArr($_POST,CONF_PATH."/verify.php")){
			$this->success("修改成功");
		}else{
			$this->error("修改失败");
		}
	}
	//SEO设置
	public function seo(){
		$this->display();
	}
	//更新seo信息
	public function seoHandle(){
		if(!IS_POST) $this->error("提交方式错误");

	}


}